<?php

namespace app\admin\controller;

use think\App;
use think\Controller;

class Common extends Controller
{
    public function __construct(App $app = null)
    {
        parent::__construct($app);
        if (!session('admin.id')) {
            $this->redirect('/admin/user/login/');
        }
    }
}
